package com.yupi.longojbackendserviceclient.service;


import com.yupi.longojbackendmodel.entity.QuestionSubmit;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/*
* 判题服务
* */
@FeignClient(name="longoj-backend-judge-service",path="/api/judge/inner")
public interface JudgeFeignClient {

    /**
     * 执行判题
     * @param questionSubmitId
     * @return
     */
    @PostMapping("/do")
    QuestionSubmit doJudge(@RequestParam("questionSubmitId") Long questionSubmitId);
}
